<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        
        function foo(){
            console.log('foo',this);
        }
        foo.apply(null)// window
        foo.apply(undefined) // window 默认绑定规则
        'use strict'
        foo.apply(null)// null 严格模式 就是null === this=null
        foo.apply(undefined) // undefined 严格模式 this=undefined
        // this的指向三 箭头函数
    </script>
</body>
</html>